package io.gitee.hefren.hhcache.core;

import com.google.common.base.MoreObjects;

/**
 * @Date 2024/7/9
 * @Author lifei
 */
public class CacheEntry<T> {
    private T value;

    public CacheEntry() {
    }

    public CacheEntry(T value) {
        this.value = value;
    }

    public T getValue() {
        return value;
    }

    public void setValue(T value) {
        this.value = value;
    }

    @Override
    public String toString() {
        return MoreObjects.toStringHelper(CacheEntry.class)
                .add("value", value)
                .toString();
    }
}
